package com.elai.baseconfig.service.impl;
import com.elai.baseconfig.domain.ApplicationEventDO;
import com.elai.baseconfig.mapper.ApplicationEventMapper;
import com.elai.baseconfig.service.ApplicationEventService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 应用程序和事件关系
 *
 * @author elai
 * @date 2021-04-03
 */
@Service
public class ApplicationEventServiceImpl implements ApplicationEventService
{
    @Autowired
    private ApplicationEventMapper applicationEventMapper;

    @Override
    public int insertApplicationEvent(ApplicationEventDO applicationEventDO) {
        return applicationEventMapper.insertApplicationEvent(applicationEventDO);
    }

    @Override
    public void deleteApplicationEvent(Long appCode) {
        applicationEventMapper.deleteApplicationEvent(appCode);
    }
}
